[Contents]
[Index]
[Help]
[Browse <]
[Browse >]
dopus addtrap (abort|<command>) <handler> [port <portname>]
This command allows your script to trap the progress bar's abort button or
any Opus internal command.
Specify the abort keyword to trap the abort message, or the name of the
internal command you wish to trap.
handler is the name of your custom handler message port. If you pass
the name of a message port with the optional port keyword, the message
will be sent to that port instead of your usual handler port. This can be
very useful when used with abort if your handler is busy doing something
synchronously when the abort is pressed. If the abort port is on a separate
process, it may be able to interrupt the main handler process using signals
for instance.
You can also add a trap for all internal commands using an asterisk as a
wildcard, for example: dopus addtrap * myhandler
The dopus remtrap command is used to remove trapped functions.
See the Custom Handlers section for more information on the messages
sent.
See also:
dopus remtrap
Trapped Commands
Converted on 04 Nov 1998 with RexxDoesAmigaGuide2HTML 2.2 by Michael Ranner.